package sdk.webview.fmc.com.fmcsdk.check.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import sdk.webview.fmc.com.fmcsdk.R;
import sdk.webview.fmc.com.fmcsdk.bean.OperateReportBean;

public class ShutDownAdapter extends BaseQuickAdapter<OperateReportBean.RecordBean, BaseViewHolder> {
    public ShutDownAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, OperateReportBean.RecordBean item) {
        helper.setText(R.id.tv_name,item.getLabel());
        helper.setGone(R.id.view_line,helper.getAdapterPosition() != getData().size()-1);
    }
}
